# 异步测试接口
import httpx
import asyncio


# async 原生协程（python自带的）
async def main():
    async with httpx.AsyncClient() as client:
        res = await client.get("http:localhost:8000")
        print(res.text)

if __name__ == '__main__':
    asyncio.run(main())